#ifndef _BT_RS485_H
#define _BT_RS485_H

// typedef void (*bt_rs485_parser)(unsigned char *msg,int len);

void bt_rs485_init(void);
// void bt_rs485_loop(bt_rs485_parser parser);
void bt_rs485_loop(void);
void bt_rs485_reset(void);
void bt_rs485_send_datas(unsigned char *str, unsigned char len);
unsigned char bt_rs485_check_xor(unsigned char *buf, unsigned char len);
extern void rs485_parser(unsigned char *msg, int len);

#endif